package com.xssq;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

/**
 * 应用程序
 *
 * @author XSSQ
 * @version 1.0.0
 * @date 2023/06/09 17:15:43
 * @wisdom 你可以不会但你不能不知道
 */
@SpringBootApplication
@MapperScan("com.xssq.mapper")
public class Application {
    /**
     * 主要
     *
     * @param args arg游戏
     */
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(Application.class);
        application.setBannerMode(Banner.Mode.OFF);
        Environment bean = application.run(args).getBean(Environment.class);
        System.out.println("======================启动成功=====================");
        System.out.println("启动成功,启动路径是: http://localhost:" + bean.getProperty("server.port") + "/doc.html");
    }

}
